//
//  MoreGameCell.m
//  YoucApp
//
//  Created by Liam on 11/14/12.
//
//

#import "MoreGameCell.h"

@implementation MoreGameCell

@synthesize aiView = _aiView;
@synthesize labelTips = _labelTips;

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
    }
    return self;
}

- (id)initWithCoder:(NSCoder *)aDecoder
{
	self = [super initWithCoder:aDecoder];
	if (self) {
		// Initialization code.
		self.contentView.backgroundColor = self.backgroundColor;
	}
	return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)prepareForReuse
{
    [super prepareForReuse];
    [self.aiView stopAnimating];
	self.labelTips.hidden = NO;
}

- (void)setLoading:(BOOL)loading
{
    if (loading)
        [self.aiView startAnimating];
    else
        [self.aiView stopAnimating];
}

- (void)setNoMore:(BOOL)noMore
{
	self.labelTips.hidden = noMore;
}

- (void)dealloc {
    [_aiView release];
	[_labelTips release];
    [super dealloc];
}
@end
